package com.ming.sps.server.utils;

import java.util.LinkedHashMap;

public class SqlUtil {
	
	/**
     * 构建sql参数数组
     * @param params 参数
     * @return
     */
	public static LinkedHashMap<Object, Object> constructParam(Object... params){
		LinkedHashMap<Object, Object> map = new LinkedHashMap<Object, Object>();
		int i = 0;
		for(Object param : params){
			if(param != null){
				map.put(i, param);
				i++;
			}
		}
		return map;
	}
	
}
